package hcn.protocol.base;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

import java.util.List;

/**
 * @Author: zhusm@bsoft.com.cn
 *
 * @Description: 字典返回值
 *
 * @Create: 2019-07-23 14:56
 **/
@ToString
public class SysDictionaryResponseBean {

    @JsonProperty("GBCODE")
    private String GBCODE;
    @JsonProperty("ALIAS")
    private String ALIAS;
    @JsonProperty("SORT")
    private int SORT;
    @JsonProperty("PID")
    private int PID;
    @JsonProperty("TITLE")
    private String TITLE;
    @JsonProperty("SN")
    private String SN;
    @JsonProperty("IDX")
    private String IDX;
    @JsonProperty("isLeaf")
    private int isLeaf;
    @JsonProperty("MEMO")
    private String MEMO;
    @JsonProperty("CID")
    private String CID;
    private List<Child> CHILD;

    @JsonProperty("GBCODE")
    public String getGBCODE() {
        return GBCODE;
    }

    @JsonProperty("GBCODE")
    public void setGBCODE(String GBCODE) {
        this.GBCODE = GBCODE;
    }

    @JsonProperty("ALIAS")
    public String getALIAS() {
        return ALIAS;
    }

    @JsonProperty("ALIAS")
    public void setALIAS(String ALIAS) {
        this.ALIAS = ALIAS;
    }

    @JsonProperty("SORT")
    public int getSORT() {
        return SORT;
    }

    @JsonProperty("SORT")
    public void setSORT(int SORT) {
        this.SORT = SORT;
    }

    @JsonProperty("PID")
    public int getPID() {
        return PID;
    }

    @JsonProperty("PID")
    public void setPID(int PID) {
        this.PID = PID;
    }

    @JsonProperty("TITLE")
    public String getTITLE() {
        return TITLE;
    }

    @JsonProperty("TITLE")
    public void setTITLE(String TITLE) {
        this.TITLE = TITLE;
    }

    @JsonProperty("SN")
    public String getSN() {
        return SN;
    }

    @JsonProperty("SN")
    public void setSN(String SN) {
        this.SN = SN;
    }

    @JsonProperty("IDX")
    public String getIDX() {
        return IDX;
    }

    @JsonProperty("IDX")
    public void setIDX(String IDX) {
        this.IDX = IDX;
    }

    @JsonProperty("isLeaf")
    public int getIsLeaf() {
        return isLeaf;
    }

    @JsonProperty("isLeaf")
    public void setIsLeaf(int isLeaf) {
        this.isLeaf = isLeaf;
    }

    @JsonProperty("MEMO")
    public String getMEMO() {
        return MEMO;
    }

    @JsonProperty("MEMO")
    public void setMEMO(String MEMO) {
        this.MEMO = MEMO;
    }

    @JsonProperty("CID")
    public String getCID() {
        return CID;
    }

    @JsonProperty("CID")
    public void setCID(String CID) {
        this.CID = CID;
    }

    public List<Child> getCHILD() {
        return CHILD;
    }

    public void setCHILD(List<Child> CHILD) {
        this.CHILD = CHILD;
    }

    public static class Child{
        @JsonProperty("GBCODE")
        private String GBCODE;
        @JsonProperty("ALIAS")
        private String ALIAS;
        @JsonProperty("SORT")
        private int SORT;
        @JsonProperty("PID")
        private int PID;
        @JsonProperty("TITLE")
        private String TITLE;
        @JsonProperty("SN")
        private String SN;
        @JsonProperty("IDX")
        private String IDX;
        @JsonProperty("isLeaf")
        private int isLeaf;
        @JsonProperty("MEMO")
        private String MEMO;
        @JsonProperty("CID")
        private String CID;

        @JsonProperty("GBCODE")
        public String getGBCODE() {
            return GBCODE;
        }

        @JsonProperty("GBCODE")
        public void setGBCODE(String GBCODE) {
            this.GBCODE = GBCODE;
        }

        @JsonProperty("ALIAS")
        public String getALIAS() {
            return ALIAS;
        }

        @JsonProperty("ALIAS")
        public void setALIAS(String ALIAS) {
            this.ALIAS = ALIAS;
        }

        @JsonProperty("SORT")
        public int getSORT() {
            return SORT;
        }

        @JsonProperty("SORT")
        public void setSORT(int SORT) {
            this.SORT = SORT;
        }

        @JsonProperty("PID")
        public int getPID() {
            return PID;
        }

        @JsonProperty("PID")
        public void setPID(int PID) {
            this.PID = PID;
        }

        @JsonProperty("TITLE")
        public String getTITLE() {
            return TITLE;
        }

        @JsonProperty("TITLE")
        public void setTITLE(String TITLE) {
            this.TITLE = TITLE;
        }

        @JsonProperty("SN")
        public String getSN() {
            return SN;
        }

        @JsonProperty("SN")
        public void setSN(String SN) {
            this.SN = SN;
        }

        @JsonProperty("IDX")
        public String getIDX() {
            return IDX;
        }

        @JsonProperty("IDX")
        public void setIDX(String IDX) {
            this.IDX = IDX;
        }

        @JsonProperty("isLeaf")
        public int getIsLeaf() {
            return isLeaf;
        }

        @JsonProperty("isLeaf")
        public void setIsLeaf(int isLeaf) {
            this.isLeaf = isLeaf;
        }

        @JsonProperty("MEMO")
        public String getMEMO() {
            return MEMO;
        }

        @JsonProperty("MEMO")
        public void setMEMO(String MEMO) {
            this.MEMO = MEMO;
        }

        @JsonProperty("CID")
        public String getCID() {
            return CID;
        }

        @JsonProperty("CID")
        public void setCID(String CID) {
            this.CID = CID;
        }
    }
}
